package com.lcxw.hxzbapi.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbapi.dao.mapper.RichLevelMapper;
import com.lcxw.hxzbapi.entity.pojo.RichLevel;

@Component
public class RichLevelService {

    @Resource
    RichLevelMapper richLevelMapper;

    public int deleteByPrimaryKey(Integer id)throws Exception{
        return richLevelMapper.deleteByPrimaryKey(id);
    }

    public int insert(RichLevel richLevel)throws Exception{
        return richLevelMapper.insert(richLevel);
    }

    public RichLevel selectByPrimaryKey(Integer id)throws Exception{
        return richLevelMapper.selectByPrimaryKey(id);
    }

    public List<RichLevel> selectAll(){
        return richLevelMapper.selectAll();
    }

    public int updateByPrimaryKey(RichLevel richLevel) throws Exception{
        return richLevelMapper.updateByPrimaryKey(richLevel);
    }

}
